package cn.itsource.org.service;

import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;
import cn.itsource.utli.PageInfo;

import java.util.List;

/**
 * 部门业务接口类
 * @author Administrator
 */
public interface IEmployeeService {
    /**
     * 查询全部
     * @return
     */
    List<Employee> queryAll();

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    /**
     * 新增
     * @param employee
     */
    void save(Employee employee);

    /**
     * 修改
     * @param employee
     */
    void update(Employee employee);

    /**
     * 查询单个数据
     * @param id
     * @return
     */
    Employee queryById(Long id);

    /**
     * 分页查询
     * @param query
     * @return
     */
    PageInfo<Employee> queryPage(EmployeeQuery query);

    /**
     * 批量删除
     * @param ids
     */
    void patchDel(Long[] ids);
}
